package com.moi.command;

/**
 * 调用者[命令的发送者]
 */
public class Invoker {
    private Receiver receiver;
    public  Invoker(Receiver receiver){
        this.receiver=receiver;
    }
    public void execute(){
        this.receiver.execute();
    }

    public void setReceiver(Receiver receiver) {
        this.receiver = receiver;
    }
}
